//
//  MTNewMineTextView.m
//  met
//
//  Created by 李晓俊 on 2019/6/5.
//  Copyright © 2019 李晓俊. All rights reserved.
//

#import "MTNewMineTextView.h"

@implementation MTNewMineTextView

{
    
    CGRect myframe;
    
}
- (MTNewMineTextView *)initWithFrame:(CGRect)frame

{
    self = [super initWithFrame:frame];
    if (self) {
        NSArray *nibs=[[NSBundle mainBundle]loadNibNamed:@"MTNewMineHeadView" owner:nil options:nil];
        self=[nibs objectAtIndex:1];
        myframe = frame;
    }
    return self;
}
-(void)drawRect:(CGRect)rect

{
    self.frame=myframe;//关键点在这里
}
- (IBAction)sureClick:(id)sender {
    if (self.sureChoose) {
        self.sureChoose(self.nameTF.text);
    }
}

@end
